<?php

	class OrdersController extends AppController {
		var $name = 'Orders';
		var $uses = array('Order');
		
		function dashboard_index() {
			$this->paginate = array(
				'conditions' => array(
					'Order.shop_id' => Configure::read('Shop.id')
				),
				'contain' => array(
					'Currency'
				),
				'limit' => 20
			);
			
			$orders = $this->paginate('Order');
			$this->set(compact('orders'));
		}
		
		function dashboard_details($id) {
			$this->Order->find(
				'first',
				array(
					'conditions' => array(
						''
					)
				)
			);
		}
	}
